package com.qdaily.ui.net.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 文章Feed里面的分类
 * Created with IntelliJ IDEA.
 * User: Felix
 * Date: 3/30/15
 * Time: 15:41
 * QQ:74104
 * Email:lovejiuwei@gmail.com
 */
public class ArticleMetaCategory implements Parcelable {
    private int id = 0;
    private String title = "";
    private String image = "";
    private String image_small = "";

    public ArticleMetaCategory() {

    }

    public String getImage_small() {
        return image_small;
    }

    public void setImage_small(String image_small) {
        this.image_small = image_small;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.title);
        dest.writeString(this.image);
        dest.writeString(this.image_small);
    }

    private ArticleMetaCategory(Parcel in) {
        this.id = in.readInt();
        this.title = in.readString();
        this.image = in.readString();
        this.image_small = in.readString();
    }

    public static final Creator<ArticleMetaCategory> CREATOR = new Creator<ArticleMetaCategory>() {
        public ArticleMetaCategory createFromParcel(Parcel source) {
            return new ArticleMetaCategory(source);
        }

        public ArticleMetaCategory[] newArray(int size) {
            return new ArticleMetaCategory[size];
        }
    };
}
